#!/usr/bin/python3
# author luke
# 2024年02月01日
def use_binary():
    file = open(file='file.txt',mode='rb+')
    file.write(b'hello')
    file.write('我是'.encode('utf8'))

if __name__ == '__main__':
    use_binary()